#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：7.多个实例对象.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-10-21 15:50
'''

class Dog:
    def __init__(self, name, gender):
        self.name = name
        self.gender = gender

    def speak(self):
        print(f"{self.name}正在汪汪汪.....")

    def info(self):
        print(f"{self.name}的性别为：{self.gender}")


print("-" * 30)
hashiqi = Dog("来福", "公")

hashiqi.speak()
hashiqi.info()
print("-" * 30)
jinmao = Dog("憨憨", "母")
jinmao.speak()
jinmao.info()